// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** aiAppAssistant GET /api/ai/app/assistant */
export async function aiAppAssistantUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.aiAppAssistantUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.SseEmitter>('/api/ai/app/assistant', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** aiAssistant GET /api/ai/assistant */
export async function aiAssistantUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.aiAssistantUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.SseEmitter>('/api/ai/assistant', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}

/** aiCreateImageOutPainting POST /api/ai/picture/expand */
export async function aiCreateImageOutPaintingUsingPost(
  body: API.CreatePictureOutPaintingTaskRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponseCreateImageOutPaintingResponse_>('/api/ai/picture/expand', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** getPictureOutPaintingList POST /api/ai/picture/expand/list */
export async function getPictureOutPaintingListUsingPost(
  body: API.PageRequest,
  options?: { [key: string]: any }
) {
  return request<API.BaseResponsePageImageExpansion_>('/api/ai/picture/expand/list', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  })
}

/** aiRename GET /api/ai/rename */
export async function aiRenameUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.aiRenameUsingGETParams,
  options?: { [key: string]: any }
) {
  return request<API.SseEmitter>('/api/ai/rename', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
